package com.usian.article.controller;

import com.usian.article.service.ApCollectionService;
import com.usian.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("api/v1/article")
public class ApCollectionController {
    @Autowired
    private ApCollectionService service;
    @GetMapping("collection")
    public ResponseResult collection(Long articleId,Integer status){
        return service.collection(articleId,status);
    }
}
